<!--
  Generated template for the PcPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>
  <ion-navbar>
    <ion-title>评测中心</ion-title>
  </ion-navbar>

</ion-header>


<ion-content padding>

  <div class="pc-item" ion-item (click)="openSmitem(id)" *ngFor="let item of allEval,let id = index">

    <div class="colorStrip" [ngClass]="{'colorStrip1':(id + 1) % 2 == 0}"></div>

    <ion-avatar class="ion-avatar">
      <img src={{item.teamicon}} class="pc-item-img" />
    </ion-avatar>

    <div class="pc-item-text">
      <h4>{{item.evaluatingname}}</h4>
      <p>时间：{{item.evaluatingtime}}至{{item.evaluatingendtime}}</p>
      <div [ngSwitch]="ifshow[id]">
        <span class="span-open" *ngSwitchCase="1">正在进行中
          <span>{{item.ratio}}</span>
        </span>
        <span class="span-over" *ngSwitchCase="2">未开始</span>
        <span class="span-over" *ngSwitchCase="3">已完成</span>
      </div>
    </div>


    <div class="pc-item-more">
      <ion-icon name="qianjin"></ion-icon>
    </div>

  </div>

</ion-content>
